package com.ljm.sys.org.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 机构应用
 * </p>
 *
 * @author HuamingChen
 * @since 2020-10-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysOrgApp对象", description="机构应用")
public class SysOrgApp implements Serializable {
    private static final long serialVersionUID = 1L;

    public SysOrgApp() {
    }

    public SysOrgApp(String creater, LocalDateTime createTime, Boolean isDelete, String orgId, String appCode) {
        this.creater = creater;
        this.createTime = createTime;
        this.isDelete = isDelete;
        this.orgId = orgId;
        this.appCode = appCode;
    }

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "创建人")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人")
    private String editor;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime editTime;

    @ApiModelProperty(value = "是否删除")
    @TableLogic
    private Boolean isDelete;

    @ApiModelProperty(value = "机构id")
    private String orgId;

    @ApiModelProperty(value = "应用标识")
    private String appCode;


}
